_gebietsname   = _this select 0;
_erobertvar    = _this select 1;
_gebietsradius = _this select 2;
_gebietspos    = _this select 3;
_gruppenarray  = _this select 4;
_supportart    = _this select 5;

 call compile format ["%1 = [FALSE, FALSE, 0]", _erobertvar];
 _markername = format["%1_Marker", _gebietsname];
 _marker = createMarker [_markername, _gebietspos ];
 _markername setMarkerShape "ELLIPSE";
 _markername setMarkerColor "ColorRed";
 _markername setMarkerSize [_gebietsradius, _gebietsradius];
 {_x execVM "enemy_spawn.sqf";} foreach _gruppenarray;
 _trg1 = createTrigger["EmptyDetector", _gebietspos];
 _trg1 setTriggerArea [_gebietsradius, _gebietsradius, 0, false];
 _trg1 setTriggerActivation ["WEST", "EAST D", false];            
 _trg1 setTriggerStatements['this', format['hint "Detected inside enemy area. Support coming."; [%1, %2, %3, "%4"] execVM "enemy_support.sqf"; %4 SET [1, TRUE];', _supportart, _gebietspos, _gebietsradius, _erobertvar], format['hint "Not detected anymore."; %1 SET [1, FALSE];', _erobertvar]];
 _trg2 = createTrigger["EmptyDetector", _gebietspos];             
 _trg2 setTriggerArea [_gebietsradius, _gebietsradius, 0, false]; 
 _trg2 setTriggerActivation ["EAST", "NOT PRESENT", true];
 _trg2 setTriggerStatements['this', format['hint "Area controlled by friendly Units."; "%1" setMarkerColor "ColorGreen"; %2 SET [0, TRUE];', _markername, _erobertvar], format['hint "Area controlled by Enemy."; "%1" setMarkerColor "ColorRed"; %2 SET [0, FALSE];', _markername, _erobertvar] ];